/*
 * Selling Partner API for Orders
 *
 * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools.   _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don't show up in the response).
 *
 * The version of the OpenAPI document: v0
 * Generated by: https://github.com/openapitools/openapi-generator.git
 */


using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.IO;
using System.Runtime.Serialization;
using System.Text;
using System.Text.RegularExpressions;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = software.amzn.spapi.Client.OpenAPIDateConverter;

namespace software.amzn.spapi.Model.orders.v0
{
    /// <summary>
    /// Contains the list of programs that Amazon associates with an item.  Possible programs are:  - **Subscribe and Save**: Offers recurring, scheduled deliveries to Amazon customers and Amazon Business customers for their frequently ordered products. - **FBM Ship+**: Unlocks expedited shipping without the extra cost. Helps you to provide accurate and fast delivery dates to Amazon customers. You also receive protection from late deliveries, a discount on expedited shipping rates, and cash back when you ship.
    /// </summary>
    [DataContract(Name = "AmazonPrograms")]
    public partial class AmazonPrograms : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="AmazonPrograms" /> class.
        /// </summary>
        [JsonConstructorAttribute]
        protected AmazonPrograms() { }
        /// <summary>
        /// Initializes a new instance of the <see cref="AmazonPrograms" /> class.
        /// </summary>
        /// <param name="programs">A list of the programs that Amazon associates with the order item.  **Possible values**: &#x60;SUBSCRIBE_AND_SAVE&#x60;, &#x60;FBM_SHIP_PLUS&#x60; (required).</param>
        public AmazonPrograms(List<string> programs = default(List<string>))
        {
            // to ensure "programs" is required (not null)
            if (programs == null)
            {
                throw new ArgumentNullException("programs is a required property for AmazonPrograms and cannot be null");
            }
            this.Programs = programs;
        }

        /// <summary>
        /// A list of the programs that Amazon associates with the order item.  **Possible values**: &#x60;SUBSCRIBE_AND_SAVE&#x60;, &#x60;FBM_SHIP_PLUS&#x60;
        /// </summary>
        /// <value>A list of the programs that Amazon associates with the order item.  **Possible values**: &#x60;SUBSCRIBE_AND_SAVE&#x60;, &#x60;FBM_SHIP_PLUS&#x60;</value>
        [DataMember(Name = "Programs", IsRequired = true, EmitDefaultValue = true)]
        public List<string> Programs { get; set; }

        /// <summary>
        /// Returns the string presentation of the object
        /// </summary>
        /// <returns>String presentation of the object</returns>
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();
            sb.Append("class AmazonPrograms {\n");
            sb.Append("  Programs: ").Append(Programs).Append("\n");
            sb.Append("}\n");
            return sb.ToString();
        }

        /// <summary>
        /// Returns the JSON string presentation of the object
        /// </summary>
        /// <returns>JSON string presentation of the object</returns>
        public virtual string ToJson()
        {
            return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
        }

        /// <summary>
        /// To validate all properties of the instance
        /// </summary>
        /// <param name="validationContext">Validation context</param>
        /// <returns>Validation Result</returns>
        IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
        {
            yield break;
        }
    }

}
